﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;

using InfFront.UICore;
using InfFront.InfoSources.Base;
using InfFront.InfoViews.Base;

namespace InfFront.InfoViews.WPF.Settings
{
    internal partial class GeneralSettingsInfoSource : BaseSettingsInfoSource
    {
        #region Private Variables
        private RootInfoViewSource viewSet;
        #endregion Private Variables

        public GeneralSettingsInfoSource()
        {
            Init();
        }

        public GeneralSettingsInfoSource(IContainer container)
        {
            container.Add(this);

            Init();
        }

        private void Init()
        {
            InitializeComponent();
        }

        [Browsable(false), DefaultValue(null)]
        public RootInfoViewSource ViewSet
        {
            get { return viewSet; }
            set { viewSet = value; }
        }

        private void GeneralSettingsInfoSource_OnGetObject(object sender, GetObjectEventArgs args)
        {
            args.Object = ViewSet;
        }
    }
}
